
#ifndef __APP_UART_H__
#define __APP_UART_H__


/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
typedef enum
{
	// USART1_IRQHandler for debugging...

#if		defined(BSP_DEVICE_TOUCH)

	eUART_CAM1=0,
	eUART_CAM2,
#if	(CAMERA_MAX_NUM > 2)
	eUART_CAM3,
	eUART_CAM4,
#endif

#elif	defined(BSP_DEVICE_CAMERA)

	eUART_TOUCH=0,
	eUART_EXTRA,

#endif	//BSP_DEVICE_xxx

	eUART_MAX,
} UART_TYPE;

/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported define -----------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void Uart_Init(void);

void Uart_PktProc(void);
void Uart_PktCmd(u8 uart, u8 cmd, u8 dev, u16 len, u8 *data);
void Uart_PktRes(u8 uart, u8 res, u8 dev, u8 cmd, u16 len, u8 *data);
void Uart_PktEvt(u8 uart, u8 evt, u8 dev, u16 len, u8 *data);

//void USART1_IRQHandler(void);
//void USART2_IRQHandler(void);
//void USART3_IRQHandler(void);
//void UART4_IRQHandler(void);
//void UART5_IRQHandler(void);


/* External variables --------------------------------------------------------*/


#endif /*__APP_UART_H__*/

